package com.stox.client.ui.javafx.chartingy.persistence.chart.dto;

import com.stox.client.ui.javafx.chartingy.model.plot.IndicatorPlot;

public class IndicatorPlotDTO extends PlotDTO {
	private static final long serialVersionUID = 1L;

	private String indicatorCode;
	private String indicatorConfiguration;
	
	public IndicatorPlotDTO() {
		
	}
	
	public IndicatorPlotDTO(IndicatorPlot<?,?> plot) {
		indicatorCode = plot.getExtraValue().getCode();
		indicatorConfiguration = plot.getConfiguration().toString();
	}
	
	public String getIndicatorCode() {
		return indicatorCode;
	}
	public void setIndicatorCode(String indicatorCode) {
		this.indicatorCode = indicatorCode;
	}
	public String getIndicatorConfiguration() {
		return indicatorConfiguration;
	}
	public void setIndicatorConfiguration(String indicatorConfiguration) {
		this.indicatorConfiguration = indicatorConfiguration;
	}
	
}
